home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Indispensables
/
Movie Collection
/
MovieCollection5403.exe
/
{app}
/
php5
/
getimg.php
< prev
next >
Wrap
PHP Script
|
2005-02-23
|
881b
|
26 lines
<?php
/*
$chemin = $dwn ;
$file = $fil;
if ((!file_exists($chemin)) && (!@fclose(@fopen($chemin, "r")))) die('Erreur:
fichier incorrect');
$filename = stripslashes($chemin);
$user_agent = strtolower($_SERVER["HTTP_USER_AGENT"]);
header("Content-type: application/force-download");
header(((is_integer(strpos($user_agent,
"msie")))&&(is_integer(strpos("win"))))?"Content-Disposition:
filename=\"$filename\"":"Content-Disposition: attachment; filename=\"$filename\"");
header("Content-Description: Telechargement de Fichier");
@readfile($chemin);
*/
$filename="./images/".$_GET["idx"].'.jpg';
if (!file_exists($filename))
$filename="./images/jaq_vide.gif";
//header("Content-type: application/force-download");
header("Content-type: image/jpeg");
//header("Content-Disposition: attachment; filename=".$filename);
readfile($filename);
?>